<%@  Language="C#" Inherits="System.Web.Mvc.ViewUserControl<SubsidyApp.Controllers.DistributcionFormViewModel>" %>
<%= Html.ValidationSummary("Please correct the errors and try again.") %>
<% using (Html.BeginForm()) %>
<% { %>
<fieldset>
    <div id="">
        <p>
            <label for="distrid_title">
                Distribution Title:</label>
            <%= Html.TextBox("distrid_title", Model.site_distribution.distrid_title)%>
            <%= Html.ValidationMessage("distrid_title", "*")%>
        </p>
        <p>
            <label for="zone_id">
                Zone:</label>
            <%= Html.DropDownList("zone_id", Model.Zones, Model.site_distribution.zone_id)%>
            <%= Html.ValidationMessage("zone_id", "*")%>
        </p>
        <p>
            <label for="distrid_description">
                Description:</label>
            <%= Html.TextArea("distrid_description", Model.site_distribution.distrid_description)%>
            <%= Html.ValidationMessage("distrid_description", "*")%>
        </p>
        <p>
            <label for="distrid_created">
                Creation Date</label>
            <%= Html.TextBox("distrid_created", Model.site_distribution.distrid_created, new { @readonly = "true" })%>
            <%= Html.ValidationMessage("distrid_created", "*")%>
        </p>
        <p>
            <input type="submit" value="Save" />
        </p>
    </div>
</fieldset>
<% } %>
<a href="javascript:history.back();">[back]</a>
